import type { centerType } from "@/components/map/map";

export const relatedMarkHooks = (mapInit: any) => {
    let { map, AMapObj } = mapInit;

    function crteatMark(icon: any, position: centerType) {
        let marker = new AMapObj.Marker({
            icon: icon,
            position: position,
            anchor: "bottom-center",
        });
        return marker;
    }
    return {
        crteatMark,
    };
};
